demorgan theorem practice problems with solutions